import React from 'react';
import { Space, Table, Tag } from 'antd';
import MyHead from '../components/Header/MyHead'
import Left from '../components/LeftNav/Left'
const columns = [
  {
    title:'排名',
    dataIndex:'rand',
    key:'rand',
  },
  {
    title: '名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '图片',
    key: 'img',
    dataIndex: 'img',
    render: (_, { img }) => (
      <>
        {img.map((img) => {
          return (
            <image>
              {tag.toUpperCase()}
            </image>
          );
        })}
      </>
    ),
  },
  {
    title: '操作',
    key: 'action',
    render: (_, record) => (
      <Space size="middle">
        <button>Delete</button>
      </Space>
    ),
  },
];
const data = [
  {
    key: '1',
    name: 'John Brown',
    age: 32,
  },
  {
    key: '2',
    name: 'Jim Green',
    age: 42,
    address: 'London No. 1 Lake Park',
    tags: ['loser'],
  },
  {
    key: '3',
    name: 'Joe Black',
    age: 32,
    address: 'Sidney No. 1 Lake Park',
    tags: ['cool', 'teacher'],
  },
];
const Xiai = () => {
    return (
        <div>
            <MyHead />
            <Left />
            <Table columns={columns} dataSource={data} />
        </div>
    )
}
export default Xiai;